import java.awt.FlowLayout;
import java.awt.TextArea;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JTextField;


public class InfoServer extends JFrame {
	
	JLabel current = new JLabel("Etat courant :");
	JTextArea currentLock;
	JTextArea currentAction;
	JTextArea writer;
	JTextArea readers;
	JTextArea pwriter;
	JTextArea preaders;
	JTextArea ppwriter;
	JTextArea ppreaders;
	JLabel previous = new JLabel("Etat precedent :");
	JTextArea previousLock;
	JTextArea previousAction;
	JLabel pprevious = new JLabel("Encore avant :");
	JTextArea ppreviousLock;
	JTextArea ppreviousAction;

	
	public InfoServer() {
		currentLock = new JTextArea(1, 10);
		currentAction = new JTextArea(1, 15);
		writer = new JTextArea(1, 10);
		readers = new JTextArea(5, 10);
		pwriter = new JTextArea(1, 10);
		preaders = new JTextArea(5, 10);
		ppwriter = new JTextArea(1, 10);
		ppreaders = new JTextArea(5, 10);
		previousLock = new JTextArea(1, 10);
		previousAction = new JTextArea(1, 15);
		ppreviousLock = new JTextArea(1, 10);
		ppreviousAction = new JTextArea(1, 15);
		
		setLayout(new FlowLayout());
		
		add(current);
		add(currentLock);
		add(currentAction);
		add(writer);
		add(readers);
		add(previous);
		add(previousLock);
		add(previousAction);
		add(pwriter);
		add(preaders);
		add(pprevious);
		add(ppreviousLock);
		add(ppreviousAction);
		add(ppwriter);
		add(ppreaders);
		
		setSize(630, 360);
		setLocation(10, 10);
		setVisible(true);
	}
	
	
}
